package com.lambdajEx;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

public class CGIBProxy implements MethodInterceptor {

	private IFoo query;

	@Override
	public Object intercept(Object arg0, Method arg1, Object[] arg2,
			MethodProxy arg3) throws Throwable {
		// arg3.invokeSuper(arg0, arg2);
		return query == null ? new Foo() : query;
	}

}
